#coding=utf-8
import urllib2
import json
rsp      = urllib2.urlopen('http://ip.taobao.com/service/getIpInfo.php?ip=121.17.60.249')
ipinfo   = rsp.read()
json_obj = json.loads(ipinfo)
region   = json_obj['data']['region']
city     = json_obj['data']['city']
print region, city